<?php
$request = Zend_Controller_Front::getInstance()->getRequest();
$action = $request->getActionName();
$controller = $request->getControllerName();

?>
<div id="sidebar">
		<div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->

			<h1 id="sidebar-title"><a href="/"> Admin</a></h1>

			<!-- Logo (221px wide) -->
			<a href="/"><img id="logo" src="admin/images/logo.png" alt="Simpla Admin logo" /></a>

			<ul id="main-nav">  <!-- Accordion Menu -->
                <li>
					<a href="admin/" class="nav-top-item <?=$controller == 'admin_index'?'current':''  ?>"> <!-- Add the class "current" to current menu item -->
					Сводка
					</a>
					<ul>
						<li><a href="admin/">Главная</a></li>
					</ul>
				</li>
				<li>
					<a href="admin/content" class="nav-top-item <?=$controller == 'admin_content'?'current':''  ?>"> <!-- Add the class "current" to current menu item -->
					Статика
					</a>
					<ul>
						<li><a href="admin/content/edit/">Написать новую</a></li>
						<li><a href="admin/content">Управление статьями</a></li> <!-- Add class "current" to sub menu items also -->
					</ul>
				</li>

				<li>
					<a href="#" class="nav-top-item <?=$controller == 'admin_seo'?'current':''  ?>">
						SEO
					</a>
					<ul>
						<li><a  href="admin/seo/meta">Управление Заголовками</a></li>
					</ul>
				</li>

                <li>
					<a href="#" class="nav-top-item <?=$controller == 'admin_cache'?'current':''  ?>">
						Кеш
					</a>
					<ul>
						<li><a  href="/admin/cache/">Очистка кеша</a></li>
					</ul>
				</li>

			</ul> <!-- End #main-nav -->

			<!-- End #messages -->

		</div></div> <!-- End #sidebar -->